import request from '@/utils/request'

// 查询故障日志列表
export function listFailurelog(query) {
  return request({
    url: '/failurelog/failurelog/list',
    method: 'get',
    params: query
  })
}

// 查询故障日志详细
export function getFailurelog(id) {
  return request({
    url: '/failurelog/failurelog/' + id,
    method: 'get'
  })
}

// 新增故障日志
export function addFailurelog(data) {
  return request({
    url: '/failurelog/failurelog',
    method: 'post',
    data: data
  })
}

// 修改故障日志
export function updateFailurelog(data) {
  return request({
    url: '/failurelog/failurelog',
    method: 'put',
    data: data
  })
}

// 删除故障日志
export function delFailurelog(id) {
  return request({
    url: '/failurelog/failurelog/' + id,
    method: 'delete'
  })
}
